User Model
Central User Model
The SDK uses a single User class to represent patient profiles.
class User {
int? id;
String? name;
String? phoneNumber;
String? email;
String? dateOfBirth;
String? gender; // 'male', 'female'
String? insuranceId;
String? policyNumber;
String? nationalityNumber;
int? height;
int? weight;
String? bloodType;
String? smoker; // 'yes', 'no'
String? alcoholic; // 'yes', 'no'
String? relationType;
String? maritalStatus;
String? createdAt;
String? updatedAt;
}
User Management APIs
The following methods are available via the ApiService instance:
| API | Parameters | Return Type |
|---|---|---|
createUser | User user | Future<User> |
updateUser | User userData, int userID | Future<User> |
getUser | int userID | Future<User> |
getUsers | {int? page, int? perPage} | Future<List<User>> |
deleteUser | int userID | Future<dynamic> |